<include file="Public/head" />

</head>
<include file="Public/common_header" />
<div class="mian">
    <include file="Public/sidebar" menu='cxtj.bzjcz' />
    <div class="mianR">
        <div class="yuyue">
            <ul>
                <li onclick="window.location.href='/Bail/offline_logs'" class="yuCurrent">线下</li>
                <li onclick="window.location.href='/Bail/third_party?t=2'" >拉卡拉</li>
                <li onclick="window.location.href='/Bail/third_party?t=1'">支付宝</li>
            </ul>
            <input type="hidden" name="status" value="0">
        </div>
        <div class="listBox">
            <div class="yuList">
                <div class="offline">
                    <ul class="clearfix">
                      <form action="/Bail/offline_logs" method="get">
                          <!--<li>-->
                              <!--<select id="bc_id" name="bc_id" class="tracking_list1" style="color:#7f7f7f">-->
                                  <!--<?php if(count($bc_list)>1):?>-->
                                  <!--<option value="-1">请选择分公司</option>-->
                                  <!--<?php endif;?>-->
                                  <!--<?php if($branch_id==1):?>-->
                                  <!--<option value="0">总部</option>-->
                                  <!--<?php endif;?>-->
                                  <!--<foreach name="bc_list" item="vo" key="k">-->
                                      <!--<option value="{$k}" >{$vo}</option>-->
                                  <!--</foreach>-->
                              <!--</select>-->
                          <!--</li>-->
                          <!--<script>$("#bc_id").val("<?php echo $params['bc_id'];?>")</script>-->
                          <li><input type="text" name="dealer_id" placeholder="车商ID" value="{$params.dealer_id}" /></li>
                        <li><input type="text" name="real_name" placeholder="联系人" value="{$params.real_name}" /></li>
                        <li><input type="text" name="mobile" placeholder="联系电话" value="{$params.mobile}"/></li>
                        <li><input type="text" name="start_time" placeholder="开始时间" value="{$params.start_time}" class="dealOrigination" id="demoText13" /></li>
                        <li><input type="text" name="end_time" placeholder="结束时间" value="{$params.end_time}" class="dealOrigination" id="demoText14" /></li>
                        <li class="screenBtn" style="margin-top:15px;margin-left:10px;"><input type="submit" value="筛选" /></li>
                      </form>
                    </ul>
                </div>
                <div class="totalConter" style="padding-top:0;"><i>合计：</i>记录<b id="fewPens"></b>金额<b id="recharge"></b>元</div>
                <table class="table table-bordered">
                    <thead>
                    <tr>
                        <th width="12%">车商ID</th>
                        <th width="13%">联系人</th>
                        <th width="16%">联系电话</th>
                        <th width="11%">充值金额</th>
                        <th width="17%">充值ID</th>
                        <!--<th width="17%">分公司</th>-->
                        <th width="17%">充值时间</th>
                    </tr>
                    </thead>
                    <tbody>
                    <foreach name="list" item="item">
                        <tr>
                            <td>{$item.dealer_id}</td>
                            <td>{$item.contact_person}</td>
                            <td>{$item.contact_mobile}</td>
                            <td class="rechargeAmount">{$item.occur_money}</td>
                            <td>{$item.bl_id}</td>
                            <!--<td><?php echo $item['depart_id']==0 ? "总部" : $item["branch_name"] ;?></td>-->
                            <td>{$item.createtime}</td>
                        </tr>
                    </foreach>
                    </tbody>
                </table>
            </div>
        </div>
        <div class="pageFaye">{$page}</div>
    </div>
</div>
<div class="clear"></div>
<script type="text/javascript">
    $(document).ready(function() {
        /*线下合计*/
        $("#fewPens").html($(".table-bordered").eq(0).find("tbody tr").length)

        var money = 0;
        var amount = $(".table-bordered tbody .rechargeAmount");
        for (var i = 0; i < amount.length; i++) {
            money += parseFloat($(amount).eq(i).html());
        }
        $("#recharge").html(money);
    });

</script>
<include file="Public/foot" />